<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<script src="js/jquery-1.8.3.js"></script>

<body>
<div class="wrap">
  <form action="AuctionServlet" method="post" id="myform">
    <input type="hidden" name="action" value="auctionItem"/>
  <!-- main begin-->
  <div class="sale">
    <h1 class="lf">在线拍卖系统</h1>
    <div class="logout right"><a href="#" title="注销">注销</a></div>
  </div>
      <div class="login logns produce">
        <h1 class="blues">拍卖品信息</h1>
          <dl>
            <dd >
              <label>名称：</label>
              <input type="text" class="inputh lf" value="" name="auctionName"/>
              <div class="xzkbg spbg lf"></div>
            </dd>
            <dd>
              <label>起拍价：</label>
              <input type="text" class="inputh lf" value="" name="auctionStartPrice"/>
              <div class="lf red laba">必须为数字</div>
            </dd>
            <dd>
              <label>底价：</label>
              <input type="text" class="inputh lf" value="" name="auctionUpset"/>
              <div class="lf red laba">必须为数字</div>
            </dd>
            <dd>
              <label>开始时间：</label>
              <input type="text" class="inputh lf" value="" name="auctionStartTime"/>
              <div class="lf red laba">格式：2010-05-05 12:30:00</div>
            </dd>
            <dd>
              <label>结束时间：</label>
              <input type="text" class="inputh lf" value="" name="auctionEndTime"/>
              <div class="lf red laba">格式：2010-05-06 16:30:00</div>
            </dd>
            <dd class="dds">
              <label>拍卖品图片：</label>
               <div class="lf salebd"><a href="#"><img src="images/ad20.jpg" width="100" height="100" /></a></div>
              <input name="" type="file" class="offset10 lf"  />
             
            </dd>
             <dd class="dds">
              <label>描述：</label>
              <textarea name="auctionDesc" cols="" rows="" class="textarea" ></textarea>
            </dd>
            <dd class="hegas">
                <input name="" type="button" onclick="add()" value="保 存" class="spbg buttombg buttombgs buttomb f14 lf" />
<%--  <input name="" type="button" value="保 存"  onclick="Add()"/>--%>
                <input name="" type="submit" value="取 消" class="spbg buttombg buttombgs buttomb f14 lf" />
            </dd>
          </dl>
    </div>
  </form>
<!-- main end-->
<!-- footer begin-->

</div>
 <!--footer end-->
 
</div>
<script>
  function add() {
    var auctionName=$("#auctionName").val();
    var auctionStartPrice=$("#auctionStartPrice").val();
    var auctionUpset=$("#auctionUpset").val();
    var auctionStartTime=$("#auctionStartTime").val();
    var auctionEndTime=$("#auctionEndTime").val();

    if (auctionName==""||auctionStartPrice==""||auctionUpset==""||auctionStartTime==""||auctionEndTime==""){
      alert("请填写完整信息");
      return;
    }else {
      $("#myform").submit();
    }

  }
</script>
</body>
</html>
